<?php
include_once "../functions.php";	
$dsn = "mysql:host=localhost;dbname=c70";
$pdo = new Pdo($dsn,"root","admin888");
$pdo->query("set names utf8");
//$row返回的是受影响的条数
//exec对没有结果集的进行操作：insert、update、delete、set names...
$rows = $pdo->exec("update stu_bak set name='人人做后盾'");
echo "有{$rows}条数据被修改";







































